import { config } from "./interface";

const defineConfig: config = {
  routes: {
    menu: [
      {
        path: "/dashboard",
        name: "首页",
        icon: "icon-shouye",
        title: true,
        component: "/menu/dashboard",
      },
      {
        path: "/getCustomers",
        name: "引流获客",
        icon: "icon-yinliu",
        routes: [
          {
            path: "/qr",
            name: "渠道活码",
            title: false,
            component: "/menu/getCustomers/qr",
          },
          {
            path: "/area_code",
            name: "区域扫码",
            title: false,
            component: "/menu/getCustomers/area_code",
          },
          {
            path: "/batch_add_user",
            name: "批量加好友",
            title: false,
            component: "/menu/getCustomers/batch_add_user",
          },
        ],
      },
      {
        path: "/customerConversion",
        name: "客户转化",
        icon: "icon-zhuanhua",
        routes: [
          {
            path: "/mass_send",
            name: "客户群发",
            title: false,
            component: "/menu/customerConversion/mass_send",
          },
          {
            path: "/link_radar",
            name: "互动雷达",
            title: true,
            component: "/menu/customerConversion/link_radar",
          },
          {
            path: "/customerManage",
            name: "客户阶段管理",
            title: true,
            component: "/menu/customerConversion/customerManage",
          },
        ],
      },
      {
        path: "*",
        redirect: "/dashboard",
      },
    ],

    func: [
      {
        path: "/qr/create",
        name: "新建活码",
        component: "/func/qr_create",
      },
      {
        path: "/batch_add_user/record",
        name: "导入记录",
        component: "/func/add_user_record",
      },
      {
        path: "/batch_add_user/record/detail",
        name: "详情",
        component: "/func/add_user_record_detail",
      },
    ],
  },
};

export default defineConfig;
